package adminlogmodel

type AdminLog struct {
	ID        int    `validate:"min=0"`    // ID
	Name      string `validate:"required"` // 操作的管理员名字
	Source    string `validate:"required"` // 操作的IP:Port信息
	Location  string `validate:"required"` // 操作的地理位置
	Behavior  string `validate:"required"` // 操作的行为
	TimeStamp string `validate:"required"` // 日志上传时间
}

// AdminLogJson TODO 单独写一个分页分日期的请求参数结构体
type AdminLogJson struct {
	PageSize  int    `validate:"required"`
	PageNo    int    `validate:"required"`
	EndTime   string `validate:"required"`
	BeginTime string `validate:"required"`
}

type AdminLogIDJson struct {
	AdminLogJson
	AdminID int `validate:"min=0"`
}
